import constants from '@/commons/constants';
const moduleCode = constants.MODULE_SYS_CODE;

export default [
    {
        path: '/pay',
        redirect: '/pay/account'
    },
    {
        path: '/pay/account',
        component: () => import('@/views/sys/pay/account/index.vue')
    },
    {
        path: '/pay/mp',
        component: () => import('@/views/sys/pay/mp/index.vue'),
        meta: {
            title: '微信支付',
            permAuth: false,
            code: 'payMp:query',
            moduleCode
        }
    },
    {
        path: '/pay/account/hasacc',
        component: () => import('@/views/sys/pay/open/hasacc.vue'),
        meta: {
            title: '宝付账户开通',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/pay/account/noacc',
        component: () => import('@/views/sys/pay/open/noacc.vue'),
        meta: {
            title: '宝付账户开通',
            permAuth: false,
            moduleCode
        }
    },
    {
        // 开通企业账户-支付信息/宝户通账户管理/开通账户
        path: '/pay/account/enterprise',
        component: () => import('@/views/sys/pay/enterprise/index.vue'),
        meta: {
            title: '开通账户',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/pay/baohutong',
        component: () => import('@/views/sys/pay/baohutong/index.vue'),
        name: 'payBaohutong',
        meta: {
            title: '宝户通账户管理',
            keepAlive: true,
            code: 'baohu_manage',
            moduleCode
        }
    },
    {
        // 开通企业账户-宝户通账户管理/宝户通账户管理/开通账户
        path: '/pay/baohutong/enterprise',
        component: () => import('@/views/sys/pay/enterprise/index.vue'),
        meta: {
            title: '开通账户',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/pay/account/person',
        component: () => import('@/views/sys/pay/person/open.vue'),
        meta: {
            title: '开通账户',
            // 开通个人宝户通账户
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/pay/baohutong/person',
        component: () => import('@/views/sys/pay/person/open.vue'),
        meta: {
            title: '开通账户',
            // 开通个人宝户通账户
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/pay/baohutong/detail',
        component: () => import('@/views/sys/pay/detail/index.vue'),
        meta: {
            title: '详情',
            // 宝户通账号详情
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/pay/accountDetail',
        component: () => import('@/views/sys/pay/account/detail/index.vue'),
        meta: {
            title: '宝付支付',
            // 商户默认宝户通账号详情
            permAuth: false,
            moduleCode
        }
    },
    {
        // 宝付支付-个体账户开通账户
        path: '/pay/account/individual',
        component: () => import('@/views/sys/pay/open/peraccount.vue'),
        meta: {
            title: '开通账户',
            permAuth: false,
            moduleCode
        }
    },
    {
        //宝户通账户管理-开通个体账户
        path: '/pay/baohutong/individual',
        component: () => import('@/views/sys/pay/baohutong/individual/perAccount.vue'),
        meta: {
            title: '开通账户',
            permAuth: false,
            keepAlive: true,
            moduleCode
        }
    }
];
